home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / develop / develop issue 24 / develop issue 24 code / new device drivers / PCI Driver Sample / NCR_DriverProject / Src / DMATransfer.h < prev    next >
MacBinary  |  1995-07-24  |  9.1 KB  |  [TEXT/MPCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Jul 24 17:34:37 1995, modified Mon Jul 24 17:34:37 1995, creator 'MPCC', type ASCII, 8649 bytes "DMATransfer.h" , at 0x2249 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 44 4d 41 54 72 61 | 6e 73 66 65 72 2e 68 00 |..DMATra|nsfer.h.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 43 | 43 01 00 00 00 00 00 00 |.TEXTMPC|C.......|
|00000050| 00 00 00 00 00 21 c9 00 | 00 01 9a ac 39 c2 6d ac |.....!..|....9.m.|
|00000060| 39 c2 6d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |9.m.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3d 23 00 00 |........|....=#..|
|00000080| 2f 2a 09 09 09 09 09 09 | 09 09 09 44 4d 41 54 72 |/*......|...DMATr|
|00000090| 61 6e 73 66 65 72 2e 68 | 09 09 09 09 09 09 09 09 |ansfer.h|........|
|000000a0| 09 2a 2f 0d 2f 2a 0d 20 | 2a 20 44 4d 41 54 72 61 |.*/./*. |* DMATra|
|000000b0| 6e 73 66 65 72 2e 68 0d | 20 2a 20 43 6f 70 79 72 |nsfer.h.| * Copyr|
|000000c0| 69 67 68 74 20 a9 20 31 | 39 39 35 20 41 70 70 6c |ight . 1|995 Appl|
|000000d0| 65 20 43 6f 6d 70 75 74 | 65 72 20 49 6e 63 2e 20 |e Comput|er Inc. |
|000000e0| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|000000f0| 76 65 64 2e 0d 20 2a 2f | 0d 2f 2a 09 2e 5f 5f 5f |ved.. */|./*..___|
|00000100| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000110| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000120| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000130| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000140| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000150| 2e 0d 20 20 09 7c 20 54 | 68 69 73 20 6c 69 62 72 |.. .| T|his libr|
|00000160| 61 72 79 20 73 69 6d 70 | 6c 69 66 69 65 73 20 75 |ary simp|lifies u|
|00000170| 73 69 6e 67 20 50 72 65 | 70 61 72 65 4d 65 6d 6f |sing Pre|pareMemo|
|00000180| 72 79 46 6f 72 49 4f 20 | 77 69 74 68 20 44 4d 41 |ryForIO |with DMA|
|00000190| 20 61 6e 64 20 6e 6f 6e | 2d 44 4d 41 20 68 61 72 | and non|-DMA har|
|000001a0| 64 77 61 72 65 09 7c 0d | 09 7c 20 64 65 76 69 63 |dware.|.|.| devic|
|000001b0| 65 73 2e 20 54 68 65 73 | 65 20 66 75 6e 63 74 69 |es. Thes|e functi|
|000001c0| 6f 6e 73 20 63 61 6e 20 | 62 65 20 63 61 6c 6c 65 |ons can |be calle|
|000001d0| 64 20 66 72 6f 6d 20 61 | 6e 79 20 69 6e 74 65 72 |d from a|ny inter|
|000001e0| 72 75 70 74 20 6c 65 76 | 65 6c 2e 09 09 09 09 09 |rupt lev|el......|
|000001f0| 7c 0d 09 7c 09 09 09 09 | 09 09 09 09 09 09 09 09 ||..|....|........|
|00000200| 09 09 09 09 09 09 09 09 | 09 7c 0d 09 7c 20 50 72 |........|.|..| Pr|
|00000210| 65 70 61 72 65 44 4d 41 | 54 72 61 6e 73 66 65 72 |epareDMA|Transfer|
|00000220| 20 70 72 65 70 61 72 65 | 73 20 74 68 65 20 6e 65 | prepare|s the ne|
|00000230| 78 74 20 73 65 67 6d 65 | 6e 74 20 28 6c 6f 67 69 |xt segme|nt (logi|
|00000240| 63 61 6c 20 6f 72 20 70 | 68 79 73 69 63 61 6c 29 |cal or p|hysical)|
|00000250| 20 74 68 61 74 20 63 61 | 6e 09 09 7c 0d 09 7c 20 | that ca|n..|..| |
|00000260| 62 65 20 63 6f 6d 70 75 | 74 65 64 20 66 72 6f 6d |be compu|ted from|
|00000270| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 73 74 61 | the cur|rent sta|
|00000280| 74 65 20 6f 66 20 74 68 | 65 20 49 2f 4f 20 74 61 |te of th|e I/O ta|
|00000290| 62 6c 65 2e 20 54 68 65 | 20 63 61 6c 6c 65 72 20 |ble. The| caller |
|000002a0| 6d 75 73 74 20 61 64 61 | 70 74 20 74 68 65 09 7c |must ada|pt the.||
|000002b0| 0d 09 7c 20 72 65 73 75 | 6c 74 20 69 66 20 72 65 |..| resu|lt if re|
|000002c0| 71 75 69 72 65 64 20 6d | 61 78 69 6d 75 6d 20 74 |quired m|aximum t|
|000002d0| 72 61 6e 73 66 65 72 20 | 6c 65 6e 67 74 68 20 6c |ransfer |length l|
|000002e0| 69 6d 69 74 61 74 69 6f | 6e 73 2e 09 09 09 09 09 |imitatio|ns......|
|000002f0| 09 09 7c 0d 09 7c 09 09 | 09 09 09 09 09 09 09 09 |..|..|..|........|
|00000300| 09 09 09 09 09 09 09 09 | 09 09 09 7c 0d 09 7c 20 |........|...|..| |
|00000310| 55 73 61 67 65 3a 09 09 | 09 09 09 09 09 09 09 09 |Usage:..|........|
|00000320| 09 09 09 09 09 09 09 09 | 09 7c 0d 09 7c 09 09 77 |........|.|..|..w|
|00000330| 68 69 6c 65 20 28 28 6d | 79 49 4f 54 61 62 6c 65 |hile ((m|yIOTable|
|00000340| 2e 73 74 61 74 65 20 26 | 20 6b 49 4f 53 74 61 74 |.state &| kIOStat|
|00000350| 65 44 6f 6e 65 29 20 3d | 3d 20 30 29 20 7b 09 09 |eDone) =|= 0) {..|
|00000360| 09 09 09 09 09 09 7c 0d | 09 7c 09 09 09 73 74 61 |......|.|.|...sta|
|00000370| 74 75 73 20 3d 20 50 72 | 65 70 61 72 65 4d 65 6d |tus = Pr|epareMem|
|00000380| 6f 72 79 46 6f 72 49 4f | 28 26 6d 79 49 4f 54 61 |oryForIO|(&myIOTa|
|00000390| 62 6c 65 29 3b 09 2f 2f | 20 44 6f 20 70 72 65 70 |ble);.//| Do prep|
|000003a0| 61 72 61 74 69 6f 6e 09 | 09 09 7c 0d 09 7c 09 09 |aration.|..|..|..|
|000003b0| 09 69 66 20 28 73 74 61 | 74 75 73 20 3d 3d 20 6e |.if (sta|tus == n|
|000003c0| 6f 45 72 72 29 20 7b 09 | 09 09 09 09 09 2f 2f 20 |oErr) {.|.....// |
|000003d0| 53 74 61 72 74 20 64 6d | 61 20 70 72 65 70 61 72 |Start dm|a prepar|
|000003e0| 61 74 69 6f 6e 09 7c 0d | 09 7c 09 09 09 09 73 74 |ation.|.|.|....st|
|000003f0| 61 74 75 73 20 3d 20 49 | 6e 69 74 69 61 6c 69 7a |atus = I|nitializ|
|00000400| 65 44 4d 41 54 72 61 6e | 73 66 65 72 28 09 09 09 |eDMATran|sfer(...|
|00000410| 09 09 09 09 09 09 09 7c | 0d 09 7c 09 09 09 09 09 |.......||..|.....|
|00000420| 09 09 26 6d 79 49 4f 54 | 61 62 6c 65 2c 09 09 09 |..&myIOT|able,...|
|00000430| 09 09 09 09 09 09 09 09 | 09 7c 0d 09 7c 09 09 09 |........|.|..|...|
|00000440| 09 09 09 09 6d 79 4c 6f | 67 69 63 61 6c 41 6c 69 |....myLo|gicalAli|
|00000450| 67 6e 6d 65 6e 74 2c 09 | 09 09 09 09 09 09 09 09 |gnment,.|........|
|00000460| 09 7c 0d 09 7c 09 09 09 | 09 09 09 09 26 6d 79 44 |.|..|...|....&myD|
|00000470| 4d 41 54 61 62 6c 65 09 | 09 09 09 09 09 09 09 09 |MATable.|........|
|00000480| 09 09 09 7c 0d 09 7c 09 | 09 09 09 09 09 29 3b 09 |...|..|.|.....);.|
|00000490| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 7c 0d |........|......|.|
|000004a0| 09 7c 09 09 09 09 77 68 | 69 6c 65 20 28 73 74 61 |.|....wh|ile (sta|
|000004b0| 74 75 73 20 3d 3d 20 6e | 6f 45 72 72 29 20 7b 09 |tus == n|oErr) {.|
|000004c0| 09 09 09 2f 2f 20 53 74 | 61 72 74 20 64 6d 61 20 |...// St|art dma |
|000004d0| 6f 70 65 72 61 74 69 6f | 6e 09 09 7c 0d 09 7c 09 |operatio|n..|..|.|
|000004e0| 09 09 09 09 73 74 61 74 | 75 73 20 3d 20 50 72 65 |....stat|us = Pre|
|000004f0| 70 61 72 65 44 4d 41 54 | 72 61 6e 73 66 65 72 28 |pareDMAT|ransfer(|
|00000500| 09 09 09 09 09 09 09 09 | 09 7c 0d 09 7c 09 09 09 |........|.|..|...|
|00000510| 09 09 09 09 09 26 6d 79 | 44 4d 41 54 61 62 6c 65 |.....&my|DMATable|
|00000520| 2c 09 09 09 09 09 09 09 | 09 09 09 7c 0d 09 7c 09 |,.......|...|..|.|
|00000530| 09 09 09 09 09 09 09 26 | 6d 79 4e 65 78 74 54 72 |.......&|myNextTr|
|00000540| 61 6e 73 66 65 72 2c 09 | 09 09 09 09 09 09 09 09 |ansfer,.|........|
|00000550| 7c 0d 09 7c 09 09 09 09 | 09 09 09 09 26 6e 65 78 ||..|....|....&nex|
|00000560| 74 49 73 4c 6f 67 69 63 | 61 6c 09 09 09 09 09 09 |tIsLogic|al......|
|00000570| 09 09 09 09 7c 0d 09 7c | 09 09 09 09 09 09 09 29 |....|..||.......)|
|00000580| 3b 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 7c |;.......|.......||
|00000590| 0d 09 7c 09 09 09 09 09 | 69 66 20 28 73 74 61 74 |..|.....|if (stat|
|000005a0| 75 73 20 3d 3d 20 6e 6f | 45 72 72 29 20 7b 09 09 |us == no|Err) {..|
|000005b0| 09 09 09 09 09 09 09 09 | 09 7c 0d 09 7c 09 09 09 |........|.|..|...|
|000005c0| 09 09 09 69 66 20 28 6e | 65 78 74 49 73 4c 6f 67 |...if (n|extIsLog|
|000005d0| 69 63 61 6c 29 09 09 09 | 09 09 09 09 09 09 09 09 |ical)...|........|
|000005e0| 7c 0d 09 7c 09 09 09 09 | 09 09 09 44 6f 4c 6f 67 ||..|....|...DoLog|
|000005f0| 69 63 61 6c 54 72 61 6e | 73 66 65 72 28 26 6d 79 |icalTran|sfer(&my|
|00000600| 4e 65 78 74 54 72 61 6e | 73 66 65 72 29 3b 09 09 |NextTran|sfer);..|
|00000610| 09 09 09 09 7c 0d 09 7c | 09 09 09 09 09 09 65 6c |....|..||......el|
|00000620| 73 65 20 7b 09 09 09 09 | 09 09 09 09 09 09 09 09 |se {....|........|
|00000630| 09 09 7c 0d 09 7c 09 09 | 09 09 09 09 09 44 6f 50 |..|..|..|.....DoP|
|00000640| 68 79 73 69 63 61 6c 54 | 72 61 6e 73 66 65 72 28 |hysicalT|ransfer(|
|00000650| 26 6d 79 4e 65 78 74 54 | 72 61 6e 73 66 65 72 29 |&myNextT|ransfer)|
|00000660| 3b 09 09 09 09 09 7c 0d | 09 7c 09 09 09 09 09 09 |;.....|.|.|......|
|00000670| 7d 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |}.......|........|
|00000680| 7c 0d 09 7c 09 09 09 09 | 09 7d 20 2f 2f 20 46 6f ||..|....|.} // Fo|
|00000690| 72 20 61 6c 6c 20 44 4d | 41 20 73 65 67 6d 65 6e |r all DM|A segmen|
|000006a0| 74 73 20 66 6f 72 20 74 | 68 69 73 20 70 72 65 70 |ts for t|his prep|
|000006b0| 61 72 61 74 69 6f 6e 2e | 09 09 09 09 09 7c 0d 09 |aration.|.....|..|
|000006c0| 7c 09 09 09 09 7d 20 2f | 2f 20 77 68 69 6c 65 20 ||....} /|/ while |
|000006d0| 74 68 65 72 65 20 69 73 | 20 64 61 74 61 20 74 6f |there is| data to|
|000006e0| 20 74 72 61 6e 73 6d 69 | 74 09 09 09 09 09 09 09 | transmi|t.......|
|000006f0| 09 7c 0d 09 7c 09 09 09 | 09 43 68 65 63 6b 70 6f |.|..|...|.Checkpo|
|00000700| 69 6e 74 49 4f 28 6d 79 | 49 4f 54 61 62 6c 65 2e |intIO(my|IOTable.|
|00000710| 70 72 65 70 61 72 61 74 | 69 6f 6e 49 44 2c 20 6b |preparat|ionID, k|
|00000720| 4e 69 6c 4f 70 74 69 6f | 6e 73 29 3b 09 09 09 09 |NilOptio|ns);....|
|00000730| 09 7c 0d 09 7c 09 09 7d | 20 2f 2f 20 69 66 20 50 |.|..|..}| // if P|
|00000740| 72 65 70 61 72 65 4d 65 | 6d 6f 72 79 46 6f 72 49 |repareMe|moryForI|
|00000750| 4f 20 73 75 63 63 65 65 | 64 65 64 09 09 09 09 09 |O succee|ded.....|
|00000760| 09 09 09 09 09 7c 0d 09 | 2e 5f 5f 5f 5f 5f 5f 5f |.....|..|._______|
|00000770| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000780| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000790| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000007a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000007b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 2e 0d 20 2a |________|____.. *|
|000007c0| 2f 0d 0d 23 69 66 6e 64 | 65 66 20 44 4d 41 54 72 |/..#ifnd|ef DMATr|
|000007d0| 61 6e 73 66 65 72 0d 23 | 64 65 66 69 6e 65 20 44 |ansfer.#|define D|
|000007e0| 4d 41 54 72 61 6e 73 66 | 65 72 0d 0d 23 69 6e 63 |MATransf|er..#inc|
|000007f0| 6c 75 64 65 20 3c 54 79 | 70 65 73 2e 68 3e 0d 23 |lude <Ty|pes.h>.#|
|00000800| 69 6e 63 6c 75 64 65 20 | 3c 4b 65 72 6e 65 6c 2e |include |<Kernel.|
|00000810| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 45 72 72 |h>.#incl|ude <Err|
|00000820| 6f 72 73 2e 68 3e 0d 0d | 73 74 72 75 63 74 20 44 |ors.h>..|struct D|
|00000830| 4d 41 54 72 61 6e 73 66 | 65 72 49 6e 66 6f 20 7b |MATransf|erInfo {|
|00000840| 0d 09 09 63 6f 6e 73 74 | 20 49 4f 50 72 65 70 61 |...const| IOPrepa|
|00000850| 72 61 74 69 6f 6e 54 61 | 62 6c 65 20 2a 69 6f 54 |rationTa|ble *ioT|
|00000860| 61 62 6c 65 50 74 72 3b | 09 09 09 2f 2a 20 43 61 |ablePtr;|.../* Ca|
|00000870| 6c 6c 65 72 27 73 20 49 | 2f 4f 20 50 72 65 70 20 |ller's I|/O Prep |
|00000880| 54 61 62 6c 65 09 2a 2f | 0d 09 09 55 49 6e 74 33 |Table.*/|...UInt3|
|00000890| 32 09 09 09 09 09 6c 6f | 67 69 63 61 6c 41 6c 69 |2.....lo|gicalAli|
|000008a0| 67 6e 6d 65 6e 74 3b 09 | 09 2f 2a 20 43 61 6c 6c |gnment;.|./* Call|
|000008b0| 65 72 27 73 20 70 61 72 | 61 6d 65 74 65 72 09 09 |er's par|ameter..|
|000008c0| 2a 2f 0d 09 09 49 74 65 | 6d 43 6f 75 6e 74 09 09 |*/...Ite|mCount..|
|000008d0| 09 09 73 63 61 74 74 65 | 72 47 61 74 68 65 72 49 |..scatte|rGatherI|
|000008e0| 6e 64 65 78 3b 09 09 2f | 2a 20 30 20 74 6f 20 72 |ndex;../|* 0 to r|
|000008f0| 61 6e 67 65 2e 65 6e 74 | 72 79 43 6f 75 6e 74 09 |ange.ent|ryCount.|
|00000900| 2a 2f 0d 09 09 42 79 74 | 65 43 6f 75 6e 74 09 09 |*/...Byt|eCount..|
|00000910| 09 09 70 72 65 70 61 72 | 65 43 6f 75 6e 74 3b 09 |..prepar|eCount;.|
|00000920| 09 09 2f 2a 20 30 20 74 | 6f 20 6c 65 6e 67 74 68 |../* 0 t|o length|
|00000930| 50 72 65 70 61 72 65 64 | 09 09 2a 2f 0d 09 09 42 |Prepared|..*/...B|
|00000940| 79 74 65 43 6f 75 6e 74 | 09 09 09 09 72 61 6e 67 |yteCount|....rang|
|00000950| 65 43 6f 75 6e 74 3b 09 | 09 09 09 2f 2a 20 30 20 |eCount;.|.../* 0 |
|00000960| 74 6f 20 72 61 6e 67 65 | 20 6c 65 6e 67 74 68 09 |to range| length.|
|00000970| 09 2a 2f 0d 09 09 42 79 | 74 65 43 6f 75 6e 74 09 |.*/...By|teCount.|
|00000980| 09 09 09 72 61 6e 67 65 | 4c 65 6e 67 74 68 3b 09 |...range|Length;.|
|00000990| 09 09 2f 2a 20 4c 65 6e | 67 74 68 20 6f 66 20 74 |../* Len|gth of t|
|000009a0| 68 69 73 20 73 67 20 61 | 72 65 61 09 2a 2f 0d 09 |his sg a|rea.*/..|
|000009b0| 09 49 74 65 6d 43 6f 75 | 6e 74 09 09 09 09 70 68 |.ItemCou|nt....ph|
|000009c0| 79 73 69 63 61 6c 4d 61 | 70 49 6e 64 65 78 3b 09 |ysicalMa|pIndex;.|
|000009d0| 09 2f 2a 20 30 20 74 6f | 20 6d 61 70 70 69 6e 67 |./* 0 to| mapping|
|000009e0| 45 6e 74 72 79 43 6f 75 | 6e 74 09 2a 2f 0d 09 09 |EntryCou|nt.*/...|
|000009f0| 42 79 74 65 43 6f 75 6e | 74 09 09 09 09 70 68 79 |ByteCoun|t....phy|
|00000a00| 73 69 63 61 6c 53 74 61 | 72 74 3b 09 09 09 2f 2a |sicalSta|rt;.../*|
|00000a10| 20 30 20 74 6f 20 70 68 | 79 73 69 63 61 6c 4c 65 | 0 to ph|ysicalLe|
|00000a20| 6e 67 74 68 09 09 2a 2f | 0d 09 09 42 79 74 65 43 |ngth..*/|...ByteC|
|00000a30| 6f 75 6e 74 09 09 09 09 | 70 68 79 73 69 63 61 6c |ount....|physical|
|00000a40| 45 6e 64 3b 09 09 09 2f | 2a 20 44 4d 41 20 68 69 |End;.../|* DMA hi|
|00000a50| 67 68 2d 77 61 74 65 72 | 20 6d 61 72 6b 09 09 2a |gh-water| mark..*|
|00000a60| 2f 0d 20 09 09 42 79 74 | 65 43 6f 75 6e 74 09 09 |/. ..Byt|eCount..|
|00000a70| 09 09 66 69 72 73 74 50 | 61 67 65 4f 66 66 73 65 |..firstP|ageOffse|
|00000a80| 74 3b 09 09 2f 2a 20 4c | 6f 67 69 63 61 6c 20 74 |t;../* L|ogical t|
|00000a90| 72 61 6e 73 66 65 72 20 | 68 61 63 6b 09 2a 2f 0d |ransfer |hack.*/.|
|00000aa0| 09 09 41 64 64 72 65 73 | 73 52 61 6e 67 65 09 09 |..Addres|sRange..|
|00000ab0| 09 70 68 79 73 69 63 61 | 6c 52 61 6e 67 65 3b 09 |.physica|lRange;.|
|00000ac0| 09 09 2f 2a 20 43 75 72 | 72 65 6e 74 20 70 68 79 |../* Cur|rent phy|
|00000ad0| 73 69 63 61 6c 20 73 65 | 67 6d 65 6e 74 09 2a 2f |sical se|gment.*/|
|00000ae0| 0d 09 09 41 64 64 72 65 | 73 73 52 61 6e 67 65 09 |...Addre|ssRange.|
|00000af0| 09 09 6c 6f 67 69 63 61 | 6c 53 74 61 72 74 3b 09 |..logica|lStart;.|
|00000b00| 09 09 2f 2a 20 49 6e 69 | 74 69 61 6c 20 6c 6f 67 |../* Ini|tial log|
|00000b10| 69 63 61 6c 20 73 65 67 | 6d 65 6e 74 09 2a 2f 0d |ical seg|ment.*/.|
|00000b20| 09 09 41 64 64 72 65 73 | 73 52 61 6e 67 65 09 09 |..Addres|sRange..|
|00000b30| 09 6c 6f 67 69 63 61 6c | 45 6e 64 3b 09 09 09 09 |.logical|End;....|
|00000b40| 2f 2a 20 46 69 6e 61 6c | 20 6c 6f 67 69 63 61 6c |/* Final| logical|
|00000b50| 20 73 65 67 6d 65 6e 74 | 09 2a 2f 0d 7d 3b 0d 74 | segment|.*/.};.t|
|00000b60| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 44 4d |ypedef s|truct DM|
|00000b70| 41 54 72 61 6e 73 66 65 | 72 49 6e 66 6f 20 44 4d |ATransfe|rInfo DM|
|00000b80| 41 54 72 61 6e 73 66 65 | 72 49 6e 66 6f 2c 20 2a |ATransfe|rInfo, *|
|00000b90| 44 4d 41 54 72 61 6e 73 | 66 65 72 49 6e 66 6f 50 |DMATrans|ferInfoP|
|00000ba0| 74 72 3b 0d 0d 2f 2a 09 | 2e 5f 5f 5f 5f 5f 5f 5f |tr;../*.|._______|
|00000bb0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000bc0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000bd0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000be0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000bf0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 2e 0d 20 20 |________|____.. |
|00000c00| 09 7c 20 49 6e 69 74 69 | 61 6c 69 7a 65 44 4d 41 |.| Initi|alizeDMA|
|00000c10| 54 72 61 6e 73 66 65 72 | 09 09 09 09 09 09 09 09 |Transfer|........|
|00000c20| 09 09 09 09 09 09 09 09 | 7c 0d 09 7c 09 09 09 09 |........||..|....|
|00000c30| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00000c40| 09 7c 0d 09 7c 20 49 6e | 69 74 69 61 6c 69 7a 65 |.|..| In|itialize|
|00000c50| 20 74 68 65 20 44 4d 41 | 54 72 61 6e 73 66 65 72 | the DMA|Transfer|
|00000c60| 49 6e 66 6f 20 72 65 63 | 6f 72 64 2e 09 09 09 09 |Info rec|ord.....|
|00000c70| 09 09 09 09 09 09 09 7c | 0d 09 7c 20 49 6e 70 75 |.......||..| Inpu|
|00000c80| 74 3a 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |t:......|........|
|00000c90| 09 09 09 09 09 7c 0d 09 | 7c 09 69 6f 54 61 62 6c |.....|..||.ioTabl|
|00000ca0| 65 09 09 09 09 54 68 65 | 20 70 72 65 70 61 72 65 |e....The| prepare|
|00000cb0| 64 20 49 2f 4f 20 50 72 | 65 70 61 72 61 74 69 6f |d I/O Pr|eparatio|
|00000cc0| 6e 20 74 61 62 6c 65 2e | 20 49 74 20 69 73 20 22 |n table.| It is "|
|00000cd0| 72 65 61 64 79 20 74 6f | 20 72 75 6e 22 09 7c 0d |ready to| run".|.|
|00000ce0| 09 7c 09 6c 6f 67 69 63 | 61 6c 47 72 61 6e 75 6c |.|.logic|alGranul|
|00000cf0| 61 72 69 74 79 09 54 68 | 69 73 20 69 73 20 61 20 |arity.Th|is is a |
|00000d00| 70 6f 77 65 72 20 6f 66 | 20 74 77 6f 20 74 68 61 |power of| two tha|
|00000d10| 74 20 69 73 20 75 73 65 | 64 20 74 6f 20 67 72 6f |t is use|d to gro|
|00000d20| 75 70 20 74 68 65 20 74 | 72 61 6e 73 66 65 72 09 |up the t|ransfer.|
|00000d30| 7c 0d 09 7c 09 09 09 09 | 09 09 69 6e 74 6f 20 6c ||..|....|..into l|
|00000d40| 6f 67 69 63 61 6c 20 61 | 6e 64 20 70 68 79 73 69 |ogical a|nd physi|
|00000d50| 63 61 6c 20 73 65 67 6d | 65 6e 74 73 2e 20 49 66 |cal segm|ents. If|
|00000d60| 20 7a 65 72 6f 2c 20 6f | 6e 6c 79 20 70 68 79 73 | zero, o|nly phys|
|00000d70| 69 63 61 6c 09 7c 0d 09 | 7c 09 09 09 09 09 09 74 |ical.|..||......t|
|00000d80| 72 61 6e 73 66 65 72 73 | 20 77 69 6c 6c 20 62 65 |ransfers| will be|
|00000d90| 20 72 65 70 6f 72 74 65 | 64 2e 20 49 66 20 6f 6e | reporte|d. If on|
|00000da0| 65 20 61 6e 64 20 61 20 | 6c 6f 67 69 63 61 6c 20 |e and a |logical |
|00000db0| 73 65 67 6d 65 6e 74 09 | 7c 0d 09 7c 09 09 09 09 |segment.||..|....|
|00000dc0| 09 09 62 65 67 69 6e 73 | 20 6f 6e 20 61 6e 20 6f |..begins| on an o|
|00000dd0| 64 64 2d 62 79 74 65 20 | 62 6f 75 6e 64 61 72 79 |dd-byte |boundary|
|00000de0| 2c 20 50 72 65 70 61 72 | 65 44 4d 41 54 72 61 6e |, Prepar|eDMATran|
|00000df0| 73 66 65 72 20 77 69 6c | 6c 09 09 7c 0d 09 7c 09 |sfer wil|l..|..|.|
|00000e00| 09 09 09 09 09 72 65 74 | 75 72 6e 20 61 20 6f 6e |.....ret|urn a on|
|00000e10| 65 2d 62 79 74 65 20 6c | 6f 67 69 63 61 6c 20 74 |e-byte l|ogical t|
|00000e20| 72 61 6e 73 66 65 72 2c | 20 74 68 65 6e 20 6f 6e |ransfer,| then on|
|00000e30| 65 20 6f 72 20 6d 6f 72 | 65 09 09 7c 0d 09 7c 09 |e or mor|e..|..|.|
|00000e40| 09 09 09 09 09 70 68 79 | 73 69 63 61 6c 20 74 72 |.....phy|sical tr|
|00000e50| 61 6e 73 66 65 72 73 20 | 74 68 65 6e 2c 20 69 66 |ansfers |then, if|
|00000e60| 20 6e 65 63 65 73 73 61 | 72 79 2c 20 61 20 6f 6e | necessa|ry, a on|
|00000e70| 65 2d 62 79 74 65 20 6c | 6f 67 69 63 61 6c 09 7c |e-byte l|ogical.||
|00000e80| 0d 09 7c 09 09 09 09 09 | 09 74 72 61 6e 73 66 65 |..|.....|.transfe|
|00000e90| 72 2e 09 09 09 09 09 09 | 09 09 09 09 09 09 09 7c |r.......|.......||
|00000ea0| 0d 09 7c 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |..|.....|........|
|00000eb0| 09 09 09 09 09 09 09 09 | 7c 0d 09 7c 20 4f 75 74 |........||..| Out|
|00000ec0| 70 75 74 3a 09 09 09 09 | 09 09 09 09 09 09 09 09 |put:....|........|
|00000ed0| 09 09 09 09 09 09 09 7c | 0d 09 7c 09 64 6d 61 54 |.......||..|.dmaT|
|00000ee0| 61 62 6c 65 50 74 72 09 | 09 09 54 68 65 20 44 4d |ablePtr.|..The DM|
|00000ef0| 41 54 72 61 6e 73 66 65 | 72 49 6e 66 6f 20 72 65 |ATransfe|rInfo re|
|00000f00| 63 6f 72 64 20 74 68 61 | 74 20 77 69 6c 6c 20 6d |cord tha|t will m|
|00000f10| 61 6e 61 67 65 20 74 68 | 69 73 20 74 72 61 6e 73 |anage th|is trans|
|00000f20| 66 65 72 2e 09 7c 0d 09 | 7c 09 09 09 09 09 09 09 |fer..|..||.......|
|00000f30| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 7c 0d |........|......|.|
|00000f40| 09 7c 20 52 65 73 75 6c | 74 3a 09 09 09 09 09 09 |.| Resul|t:......|
|00000f50| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 7c 0d 09 |........|.....|..|
|00000f60| 7c 09 6e 6f 45 72 72 09 | 09 09 09 4e 6f 72 6d 61 ||.noErr.|...Norma|
|00000f70| 6c 2e 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |l.......|........|
|00000f80| 7c 0d 09 7c 09 70 61 72 | 61 6d 45 72 72 09 09 09 ||..|.par|amErr...|
|00000f90| 42 61 64 20 70 61 72 61 | 6d 65 74 65 72 73 20 28 |Bad para|meters (|
|00000fa0| 69 6f 54 61 62 6c 65 20 | 6f 72 20 64 6d 61 54 61 |ioTable |or dmaTa|
|00000fb0| 62 6c 65 50 74 72 20 61 | 72 65 20 4e 55 4c 4c 20 |blePtr a|re NULL |
|00000fc0| 6f 72 20 61 6e 20 65 72 | 72 6f 72 09 7c 0d 09 7c |or an er|ror.|..||
|00000fd0| 09 09 09 09 09 09 69 6e | 20 74 68 65 20 49 4f 54 |......in| the IOT|
|00000fe0| 61 62 6c 65 20 70 61 72 | 61 6d 65 74 65 72 73 2e |able par|ameters.|
|00000ff0| 09 09 09 09 09 09 09 09 | 09 7c 0d 09 7c 09 09 09 |........|.|..|...|
|00001000| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001010| 09 09 7c 0d 09 7c 20 53 | 65 74 20 74 68 65 20 49 |..|..| S|et the I|
|00001020| 4f 54 61 62 6c 65 20 70 | 61 72 61 6d 65 74 65 72 |OTable p|arameter|
|00001030| 20 62 6c 6f 63 6b 20 61 | 73 20 66 6f 6c 6c 6f 77 | block a|s follow|
|00001040| 73 3a 09 09 09 09 09 09 | 09 09 09 09 7c 0d 09 7c |s:......|....|..||
|00001050| 09 09 6b 49 4f 4c 6f 67 | 69 63 61 6c 52 61 6e 67 |..kIOLog|icalRang|
|00001060| 65 73 09 09 09 52 65 71 | 75 69 72 65 64 20 69 66 |es...Req|uired if|
|00001070| 20 6e 6f 6e 2d 7a 65 72 | 6f 20 6c 6f 67 69 63 61 | non-zer|o logica|
|00001080| 6c 20 67 72 61 6e 75 6c | 61 72 69 74 79 2e 09 09 |l granul|arity...|
|00001090| 7c 0d 09 7c 09 09 6b 49 | 4f 4d 69 6e 69 6d 61 6c ||..|..kI|OMinimal|
|000010a0| 4c 6f 67 69 63 61 6c 4d | 61 70 70 69 6e 67 09 52 |LogicalM|apping.R|
|000010b0| 65 71 75 69 72 65 64 20 | 69 66 20 6e 6f 6e 2d 7a |equired |if non-z|
|000010c0| 65 72 6f 20 6c 6f 67 69 | 63 61 6c 20 67 72 61 6e |ero logi|cal gran|
|000010d0| 75 6c 61 72 69 74 79 2e | 09 09 7c 0d 09 7c 09 6d |ularity.|..|..|.m|
|000010e0| 61 70 70 69 6e 67 45 6e | 74 72 79 43 6f 75 6e 74 |appingEn|tryCount|
|000010f0| 09 3e 20 30 09 09 09 09 | 09 09 09 09 09 09 09 09 |.> 0....|........|
|00001100| 09 09 09 7c 0d 09 7c 09 | 6f 70 74 69 6f 6e 73 3a |...|..|.|options:|
|00001110| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001120| 09 09 7c 0d 09 7c 09 09 | 6b 49 4f 54 72 61 6e 73 |..|..|..|kIOTrans|
|00001130| 66 65 72 49 73 4c 6f 67 | 69 63 61 6c 09 09 4d 75 |ferIsLog|ical..Mu|
|00001140| 73 74 20 62 65 20 46 41 | 4c 53 45 09 09 09 09 09 |st be FA|LSE.....|
|00001150| 09 09 09 09 7c 0d 09 7c | 09 09 6b 49 4f 4d 69 6e |....|..||..kIOMin|
|00001160| 69 6d 61 6c 4c 6f 67 69 | 63 61 6c 4d 61 70 70 69 |imalLogi|calMappi|
|00001170| 6e 67 09 52 65 71 75 69 | 72 65 64 09 09 09 09 09 |ng.Requi|red.....|
|00001180| 09 09 09 09 09 7c 0d 09 | 7c 09 09 6b 49 4f 49 73 |.....|..||..kIOIs|
|00001190| 49 6e 70 75 74 20 6f 72 | 20 6b 49 4f 49 73 4f 75 |Input or| kIOIsOu|
|000011a0| 74 70 75 74 09 4f 6e 65 | 20 69 73 20 72 65 71 75 |tput.One| is requ|
|000011b0| 69 72 65 64 09 09 09 09 | 09 09 09 09 09 7c 0d 09 |ired....|.....|..|
|000011c0| 2e 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |._______|________|
|000011d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000011e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000011f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001200| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001210| 5f 5f 5f 5f 2e 0d 20 2a | 2f 0d 4f 53 53 74 61 74 |____.. *|/.OSStat|
|00001220| 75 73 09 09 09 09 09 49 | 6e 69 74 69 61 6c 69 7a |us.....I|nitializ|
|00001230| 65 44 4d 41 54 72 61 6e | 73 66 65 72 28 0d 09 09 |eDMATran|sfer(...|
|00001240| 63 6f 6e 73 74 20 49 4f | 50 72 65 70 61 72 61 74 |const IO|Preparat|
|00001250| 69 6f 6e 54 61 62 6c 65 | 20 2a 69 6f 54 61 62 6c |ionTable| *ioTabl|
|00001260| 65 50 74 72 2c 0d 09 09 | 55 49 6e 74 33 32 09 09 |ePtr,...|UInt32..|
|00001270| 09 09 09 6c 6f 67 69 63 | 61 6c 47 72 61 6e 75 6c |...logic|alGranul|
|00001280| 61 72 69 74 79 2c 0d 09 | 09 44 4d 41 54 72 61 6e |arity,..|.DMATran|
|00001290| 73 66 65 72 49 6e 66 6f | 50 74 72 09 09 64 6d 61 |sferInfo|Ptr..dma|
|000012a0| 54 61 62 6c 65 50 74 72 | 0d 09 29 3b 0d 0d 2f 2a |TablePtr|..);../*|
|000012b0| 09 2e 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |..______|________|
|000012c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000012d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000012e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000012f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001300| 5f 5f 5f 5f 5f 2e 0d 20 | 20 09 7c 20 50 72 65 70 |_____.. | .| Prep|
|00001310| 61 72 65 44 4d 41 54 72 | 61 6e 73 66 65 72 09 09 |areDMATr|ansfer..|
|00001320| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 7c 0d |........|......|.|
|00001330| 09 7c 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |.|......|........|
|00001340| 09 09 09 09 09 09 09 7c | 0d 09 7c 20 50 72 65 70 |.......||..| Prep|
|00001350| 61 72 65 20 74 68 65 20 | 6e 65 78 74 20 44 4d 41 |are the |next DMA|
|00001360| 20 73 65 67 6d 65 6e 74 | 2e 09 09 09 09 09 09 09 | segment|........|
|00001370| 09 09 09 09 09 09 09 7c | 0d 09 7c 20 49 6e 70 75 |.......||..| Inpu|
|00001380| 74 3a 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |t:......|........|
|00001390| 09 09 09 09 09 7c 0d 09 | 7c 09 64 6d 61 54 61 62 |.....|..||.dmaTab|
|000013a0| 6c 65 50 74 72 09 09 09 | 54 68 65 20 44 4d 41 54 |lePtr...|The DMAT|
|000013b0| 72 61 6e 73 66 65 72 49 | 6e 66 6f 20 72 65 63 6f |ransferI|nfo reco|
|000013c0| 72 64 20 74 68 61 74 20 | 77 69 6c 6c 20 6d 61 6e |rd that |will man|
|000013d0| 61 67 65 20 74 68 69 73 | 20 74 72 61 6e 73 66 65 |age this| transfe|
|000013e0| 72 2e 09 7c 0d 09 7c 09 | 09 09 09 09 09 09 09 09 |r..|..|.|........|
|000013f0| 09 09 09 09 09 09 09 09 | 09 09 09 09 7c 0d 09 7c |........|....|..||
|00001400| 20 4f 75 74 70 75 74 3a | 09 09 09 09 09 09 09 09 | Output:|........|
|00001410| 09 09 09 09 09 09 09 09 | 09 09 09 7c 0d 09 7c 09 |........|...|..|.|
|00001420| 6e 65 78 74 54 72 61 6e | 73 66 65 72 52 61 6e 67 |nextTran|sferRang|
|00001430| 65 09 47 65 74 73 20 74 | 68 65 20 73 65 67 6d 65 |e.Gets t|he segme|
|00001440| 6e 74 20 73 74 61 72 74 | 20 61 64 64 72 65 73 73 |nt start| address|
|00001450| 20 61 6e 64 20 74 72 61 | 6e 73 66 65 72 20 6c 65 | and tra|nsfer le|
|00001460| 6e 67 74 68 2e 09 09 09 | 7c 0d 09 7c 09 6e 65 78 |ngth....||..|.nex|
|00001470| 74 49 73 4c 6f 67 69 63 | 61 6c 09 09 54 52 55 45 |tIsLogic|al..TRUE|
|00001480| 20 69 66 20 74 68 69 73 | 20 69 73 20 61 20 6c 6f | if this| is a lo|
|00001490| 67 69 63 61 6c 20 61 64 | 64 72 65 73 73 2e 09 09 |gical ad|dress...|
|000014a0| 09 09 09 09 09 7c 0d 09 | 7c 09 09 09 09 09 09 09 |.....|..||.......|
|000014b0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 7c 0d |........|......|.|
|000014c0| 09 7c 20 52 65 73 75 6c | 74 3a 09 09 09 09 09 09 |.| Resul|t:......|
|000014d0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 7c 0d 09 |........|.....|..|
|000014e0| 7c 09 6e 6f 45 72 72 09 | 09 09 09 4e 6f 72 6d 61 ||.noErr.|...Norma|
|000014f0| 6c 20 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |l ......|........|
|00001500| 7c 0d 09 7c 09 70 61 72 | 61 6d 45 72 72 09 09 09 ||..|.par|amErr...|
|00001510| 50 72 6f 67 72 61 6d 6d | 69 6e 67 20 62 75 67 2e |Programm|ing bug.|
|00001520| 09 09 09 09 09 09 09 09 | 09 09 09 7c 0d 09 7c 09 |........|...|..|.|
|00001530| 65 6f 66 45 72 72 09 09 | 09 09 4e 6f 74 68 69 6e |eofErr..|..Nothin|
|00001540| 67 20 6d 6f 72 65 20 74 | 6f 20 74 72 61 6e 73 66 |g more t|o transf|
|00001550| 65 72 2e 09 09 09 09 09 | 09 09 09 09 7c 0d 09 7c |er......|....|..||
|00001560| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001570| 09 09 09 09 09 7c 0d 09 | 7c 20 4e 6f 74 65 73 3a |.....|..|| Notes:|
|00001580| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001590| 09 09 09 7c 0d 09 7c 09 | 09 09 09 09 09 09 09 09 |...|..|.|........|
|000015a0| 09 09 09 09 09 09 09 09 | 09 09 09 09 7c 0d 09 7c |........|....|..||
|000015b0| 09 65 6f 66 45 72 72 20 | 69 73 20 61 20 6e 6f 72 |.eofErr |is a nor|
|000015c0| 6d 61 6c 20 73 74 61 74 | 75 73 20 72 65 73 75 6c |mal stat|us resul|
|000015d0| 74 73 2e 20 54 68 65 79 | 20 73 68 6f 75 6c 64 20 |ts. They| should |
|000015e0| 62 65 20 72 65 70 6c 61 | 63 65 64 20 62 79 09 09 |be repla|ced by..|
|000015f0| 09 09 09 7c 0d 09 7c 09 | 62 79 20 70 72 69 76 61 |...|..|.|by priva|
|00001600| 74 65 20 65 72 72 6f 72 | 20 63 6f 64 65 73 2e 09 |te error| codes..|
|00001610| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 7c 0d |........|......|.|
|00001620| 09 7c 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |.|......|........|
|00001630| 09 09 09 09 09 09 09 7c | 0d 09 7c 09 49 66 20 6c |.......||..|.If l|
|00001640| 6f 67 69 63 61 6c 20 61 | 64 64 72 65 73 73 65 73 |ogical a|ddresses|
|00001650| 20 61 72 65 20 6e 65 65 | 64 65 64 2c 20 74 68 65 | are nee|ded, the|
|00001660| 20 50 72 65 70 61 72 65 | 4d 65 6d 6f 72 79 46 6f | Prepare|MemoryFo|
|00001670| 72 49 4f 20 6d 75 73 74 | 20 70 72 6f 76 69 64 65 |rIO must| provide|
|00001680| 20 61 20 22 6d 69 6e 69 | 6d 61 6c 09 7c 0d 09 7c | a "mini|mal.|..||
|00001690| 09 6c 6f 67 69 63 61 6c | 20 6d 61 70 70 69 6e 67 |.logical| mapping|
|000016a0| 22 20 74 61 62 6c 65 2e | 09 09 09 09 09 09 09 09 |" table.|........|
|000016b0| 09 09 09 09 09 09 09 7c | 0d 09 2e 5f 5f 5f 5f 5f |.......||..._____|
|000016c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000016d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000016e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000016f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001700| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 2e 0d |________|______..|
|00001710| 20 2a 2f 0d 4f 53 53 74 | 61 74 75 73 09 09 09 09 | */.OSSt|atus....|
|00001720| 09 50 72 65 70 61 72 65 | 44 4d 41 54 72 61 6e 73 |.Prepare|DMATrans|
|00001730| 66 65 72 28 0d 09 09 44 | 4d 41 54 72 61 6e 73 66 |fer(...D|MATransf|
|00001740| 65 72 49 6e 66 6f 50 74 | 72 09 09 64 6d 61 54 61 |erInfoPt|r..dmaTa|
|00001750| 62 6c 65 50 74 72 2c 0d | 09 09 41 64 64 72 65 73 |blePtr,.|..Addres|
|00001760| 73 52 61 6e 67 65 09 09 | 09 2a 6e 65 78 74 54 72 |sRange..|.*nextTr|
|00001770| 61 6e 73 66 65 72 52 61 | 6e 67 65 2c 0d 09 09 42 |ansferRa|nge,...B|
|00001780| 6f 6f 6c 65 61 6e 09 09 | 09 09 09 2a 6e 65 78 74 |oolean..|...*next|
|00001790| 49 73 4c 6f 67 69 63 61 | 6c 0d 09 29 3b 0d 0d 2f |IsLogica|l..);../|
|000017a0| 2a 0d 20 2a 20 54 68 65 | 73 65 20 6d 61 63 72 6f |*. * The|se macro|
|000017b0| 73 20 61 72 65 20 75 73 | 65 66 75 6c 20 66 6f 72 |s are us|eful for|
|000017c0| 20 44 4d 41 20 70 72 65 | 70 61 72 61 74 69 6f 6e | DMA pre|paration|
|000017d0| 2e 0d 20 2a 2f 0d 2f 2a | 09 2e 5f 5f 5f 5f 5f 5f |.. */./*|..______|
|000017e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000017f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001800| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001810| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001820| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 2e 0d 20 |________|_____.. |
|00001830| 20 09 7c 20 4e 65 78 74 | 50 61 67 65 49 73 43 6f | .| Next|PageIsCo|
|00001840| 6e 74 69 67 75 6f 75 73 | 09 09 09 09 09 09 09 09 |ntiguous|........|
|00001850| 09 09 09 09 09 09 09 09 | 7c 0d 09 7c 09 09 09 09 |........||..|....|
|00001860| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001870| 09 7c 0d 09 7c 20 54 52 | 55 45 20 69 66 20 74 68 |.|..| TR|UE if th|
|00001880| 65 20 70 61 67 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |e page f|ollowing|
|00001890| 20 74 68 69 73 20 6f 6e | 65 20 69 73 20 70 68 79 | this on|e is phy|
|000018a0| 73 69 63 61 6c 6c 79 20 | 63 6f 6e 74 69 67 75 6f |sically |contiguo|
|000018b0| 75 73 20 77 69 74 68 20 | 74 68 69 73 20 70 61 67 |us with |this pag|
|000018c0| 65 2e 09 09 7c 0d 09 7c | 09 09 09 09 09 09 09 09 |e...|..||........|
|000018d0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 7c 0d 09 |........|.....|..|
|000018e0| 7c 20 49 6e 70 75 74 3a | 09 09 09 09 09 09 09 09 || Input:|........|
|000018f0| 09 09 09 09 09 09 09 09 | 09 09 09 7c 0d 09 7c 09 |........|...|..|.|
|00001900| 6d 61 70 09 09 09 09 09 | 54 68 65 20 70 68 79 73 |map.....|The phys|
|00001910| 69 63 61 6c 20 6d 61 70 | 20 74 61 62 6c 65 2e 09 |ical map| table..|
|00001920| 09 09 09 09 09 09 09 09 | 09 7c 0d 09 7c 09 69 09 |........|.|..|.i.|
|00001930| 09 09 09 09 54 68 65 20 | 63 75 72 72 65 6e 74 20 |....The |current |
|00001940| 6c 6f 63 61 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |location| in the |
|00001950| 74 61 62 6c 65 2e 09 09 | 09 09 09 09 09 7c 0d 09 |table...|.....|..|
|00001960| 7c 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 ||.......|........|
|00001970| 09 09 09 09 09 09 7c 0d | 09 7c 20 52 65 73 75 6c |......|.|.| Resul|
|00001980| 74 3a 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |t:......|........|
|00001990| 09 09 09 09 09 7c 0d 09 | 7c 09 54 52 55 45 20 69 |.....|..||.TRUE i|
|000019a0| 66 20 74 68 65 20 70 61 | 67 65 73 20 61 72 65 20 |f the pa|ges are |
|000019b0| 63 6f 6e 74 69 67 75 6f | 75 73 2e 09 09 09 09 09 |contiguo|us......|
|000019c0| 09 09 09 09 09 09 09 7c | 0d 09 2e 5f 5f 5f 5f 5f |.......||..._____|
|000019d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000019e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000019f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001a00| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001a10| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 2e 0d |________|______..|
|00001a20| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 4e 65 78 74 | */.#def|ine Next|
|00001a30| 50 61 67 65 49 73 43 6f | 6e 74 69 67 75 6f 75 73 |PageIsCo|ntiguous|
|00001a40| 28 6d 61 70 2c 20 69 29 | 20 28 4e 65 78 74 50 61 |(map, i)| (NextPa|
|00001a50| 67 65 42 61 73 65 41 64 | 64 72 65 73 73 28 28 6d |geBaseAd|dress((m|
|00001a60| 61 70 29 5b 69 5d 29 20 | 3d 3d 20 28 6d 61 70 29 |ap)[i]) |== (map)|
|00001a70| 5b 28 69 29 20 2b 20 31 | 5d 29 0d 0d 2f 2a 09 2e |[(i) + 1|])../*..|
|00001a80| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001a90| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001aa0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001ab0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001ac0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001ad0| 5f 5f 5f 2e 0d 20 20 09 | 7c 20 4e 65 78 74 50 61 |___.. .|| NextPa|
|00001ae0| 67 65 42 61 73 65 41 64 | 64 72 65 73 73 09 09 09 |geBaseAd|dress...|
|00001af0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 7c 0d 09 |........|.....|..|
|00001b00| 7c 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 ||.......|........|
|00001b10| 09 09 09 09 09 09 7c 0d | 09 7c 20 43 6f 6d 70 75 |......|.|.| Compu|
|00001b20| 74 65 20 74 68 65 20 62 | 61 73 65 20 6f 66 20 74 |te the b|ase of t|
|00001b30| 68 65 20 70 61 67 65 20 | 74 68 61 74 20 66 6f 6c |he page |that fol|
|00001b40| 6c 6f 77 73 20 74 68 69 | 73 20 70 61 67 65 2e 20 |lows thi|s page. |
|00001b50| 54 68 69 73 20 69 73 20 | 6e 65 65 64 65 64 20 74 |This is |needed t|
|00001b60| 6f 20 64 65 74 65 72 6d | 69 6e 65 09 7c 0d 09 7c |o determ|ine.|..||
|00001b70| 20 77 68 65 74 68 65 72 | 20 61 20 6c 6f 67 69 63 | whether| a logic|
|00001b80| 61 6c 20 61 64 64 72 65 | 73 73 20 72 61 6e 67 65 |al addre|ss range|
|00001b90| 20 69 73 20 73 74 6f 72 | 65 64 20 69 6e 20 61 20 | is stor|ed in a |
|00001ba0| 63 6f 6e 74 69 67 75 6f | 75 73 20 70 68 79 73 69 |contiguo|us physi|
|00001bb0| 63 61 6c 20 61 64 64 72 | 65 73 73 20 72 61 6e 67 |cal addr|ess rang|
|00001bc0| 65 2e 09 7c 0d 09 7c 09 | 09 09 09 09 09 09 09 09 |e..|..|.|........|
|00001bd0| 09 09 09 09 09 09 09 09 | 09 09 09 09 7c 0d 09 7c |........|....|..||
|00001be0| 20 49 6e 70 75 74 3a 09 | 09 09 09 09 09 09 09 09 | Input:.|........|
|00001bf0| 09 09 09 09 09 09 09 09 | 09 09 7c 0d 09 7c 09 74 |........|..|..|.t|
|00001c00| 68 65 41 64 64 72 65 73 | 73 09 09 09 54 68 65 20 |heAddres|s...The |
|00001c10| 73 74 61 72 74 20 6f 66 | 20 74 68 65 20 70 68 79 |start of| the phy|
|00001c20| 73 69 63 61 6c 20 61 72 | 65 61 2e 09 09 09 09 09 |sical ar|ea......|
|00001c30| 09 09 09 7c 0d 09 7c 09 | 09 09 09 09 09 09 09 09 |...|..|.|........|
|00001c40| 09 09 09 09 09 09 09 09 | 09 09 09 09 7c 0d 09 7c |........|....|..||
|00001c50| 20 52 65 73 75 6c 74 3a | 09 09 09 09 09 09 09 09 | Result:|........|
|00001c60| 09 09 09 09 09 09 09 09 | 09 09 09 7c 0d 09 7c 09 |........|...|..|.|
|00001c70| 54 68 65 20 73 74 61 72 | 74 20 6f 66 20 74 68 65 |The star|t of the|
|00001c80| 20 6e 65 78 74 20 70 68 | 79 73 69 63 61 6c 20 70 | next ph|ysical p|
|00001c90| 61 67 65 2e 09 09 09 09 | 09 09 09 09 09 09 09 7c |age.....|.......||
|00001ca0| 0d 09 2e 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |..._____|________|
|00001cb0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001cc0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001cd0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001ce0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001cf0| 5f 5f 5f 5f 5f 5f 2e 0d | 20 2a 2f 0d 23 64 65 66 |______..| */.#def|
|00001d00| 69 6e 65 20 4e 65 78 74 | 50 61 67 65 42 61 73 65 |ine Next|PageBase|
|00001d10| 41 64 64 72 65 73 73 28 | 74 68 65 41 64 64 72 65 |Address(|theAddre|
|00001d20| 73 73 29 20 5c 0d 09 28 | 28 50 68 79 73 69 63 61 |ss) \..(|(Physica|
|00001d30| 6c 41 64 64 72 65 73 73 | 29 20 50 61 67 65 42 61 |lAddress|) PageBa|
|00001d40| 73 65 41 64 64 72 65 73 | 73 28 28 55 49 6e 74 33 |seAddres|s((UInt3|
|00001d50| 32 29 20 28 74 68 65 41 | 64 64 72 65 73 73 29 20 |2) (theA|ddress) |
|00001d60| 2b 20 67 50 61 67 65 53 | 69 7a 65 29 29 0d 0d 2f |+ gPageS|ize))../|
|00001d70| 2a 09 2e 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |*.._____|________|
|00001d80| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001d90| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001da0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001db0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001dc0| 5f 5f 5f 5f 5f 5f 2e 0d | 20 20 09 7c 20 50 61 67 |______..| .| Pag|
|00001dd0| 65 42 61 73 65 41 64 64 | 72 65 73 73 09 09 09 09 |eBaseAdd|ress....|
|00001de0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 7c 0d 09 |........|.....|..|
|00001df0| 7c 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 ||.......|........|
|00001e00| 09 09 09 09 09 09 7c 0d | 09 7c 20 52 65 74 75 72 |......|.|.| Retur|
|00001e10| 6e 20 74 68 65 20 62 61 | 73 65 20 6f 66 20 74 68 |n the ba|se of th|
|00001e20| 65 20 70 61 67 65 20 74 | 68 61 74 20 63 6f 6e 74 |e page t|hat cont|
|00001e30| 61 69 6e 73 20 74 68 65 | 20 61 72 67 75 6d 65 6e |ains the| argumen|
|00001e40| 74 2e 09 09 09 09 09 09 | 09 7c 0d 09 7c 09 09 09 |t.......|.|..|...|
|00001e50| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001e60| 09 09 7c 0d 09 7c 20 49 | 6e 70 75 74 3a 09 09 09 |..|..| I|nput:...|
|00001e70| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001e80| 7c 0d 09 7c 09 74 68 65 | 41 64 64 72 65 73 73 09 ||..|.the|Address.|
|00001e90| 09 09 54 68 65 20 73 74 | 61 72 74 20 6f 66 20 74 |..The st|art of t|
|00001ea0| 68 65 20 70 68 79 73 69 | 63 61 6c 20 61 72 65 61 |he physi|cal area|
|00001eb0| 2e 09 09 09 09 09 09 09 | 09 7c 0d 09 7c 09 09 09 |........|.|..|...|
|00001ec0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001ed0| 09 09 7c 0d 09 7c 20 52 | 65 73 75 6c 74 3a 09 09 |..|..| R|esult:..|
|00001ee0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001ef0| 09 7c 0d 09 7c 09 54 68 | 65 20 73 74 61 72 74 20 |.|..|.Th|e start |
|00001f00| 6f 66 20 70 68 79 73 69 | 63 61 6c 20 70 61 67 65 |of physi|cal page|
|00001f10| 20 74 68 61 74 20 63 6f | 6e 74 61 69 6e 73 20 74 | that co|ntains t|
|00001f20| 68 69 73 20 61 64 64 72 | 65 73 73 2e 09 09 09 09 |his addr|ess.....|
|00001f30| 09 09 09 7c 0d 09 2e 5f | 5f 5f 5f 5f 5f 5f 5f 5f |...|..._|________|
|00001f40| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001f50| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001f60| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001f70| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001f80| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 2e 0d 20 2a 2f 0d |________|__.. */.|
|00001f90| 23 64 65 66 69 6e 65 20 | 50 61 67 65 42 61 73 65 |#define |PageBase|
|00001fa0| 41 64 64 72 65 73 73 28 | 74 68 65 41 64 64 72 65 |Address(|theAddre|
|00001fb0| 73 73 29 20 28 28 74 68 | 65 41 64 64 72 65 73 73 |ss) ((th|eAddress|
|00001fc0| 29 20 26 20 7e 67 50 61 | 67 65 4d 61 73 6b 29 0d |) & ~gPa|geMask).|
|00001fd0| 0d 2f 2a 09 2e 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |./*..___|________|
|00001fe0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001ff0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002000| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002010| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002020| 5f 5f 5f 5f 5f 5f 5f 5f | 2e 0d 20 20 09 7c 20 50 |________|.. .| P|
|00002030| 61 67 65 4f 66 66 73 65 | 74 09 09 09 09 09 09 09 |ageOffse|t.......|
|00002040| 09 09 09 09 09 09 09 09 | 09 09 09 7c 0d 09 7c 09 |........|...|..|.|
|00002050| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00002060| 09 09 09 09 7c 0d 09 7c | 20 52 65 74 75 72 6e 20 |....|..|| Return |
|00002070| 74 68 65 20 70 6f 73 69 | 74 69 6f 6e 20 6f 66 20 |the posi|tion of |
|00002080| 74 68 69 73 20 61 64 64 | 72 65 73 73 20 77 69 74 |this add|ress wit|
|00002090| 68 69 6e 20 69 74 73 20 | 70 61 67 65 2e 09 2e 09 |hin its |page....|
|000020a0| 09 09 09 09 09 09 7c 0d | 09 7c 09 09 09 09 09 09 |......|.|.|......|
|000020b0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 7c |........|.......||
|000020c0| 0d 09 7c 20 49 6e 70 75 | 74 3a 09 09 09 09 09 09 |..| Inpu|t:......|
|000020d0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 7c 0d 09 |........|.....|..|
|000020e0| 7c 09 74 68 65 41 64 64 | 72 65 73 73 09 09 09 54 ||.theAdd|ress...T|
|000020f0| 68 65 20 73 74 61 72 74 | 20 6f 66 20 74 68 65 20 |he start| of the |
|00002100| 6c 6f 67 69 63 61 6c 20 | 6f 72 20 70 68 79 73 69 |logical |or physi|
|00002110| 63 61 6c 20 61 72 65 61 | 2e 09 09 09 09 09 7c 0d |cal area|......|.|
|00002120| 09 7c 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |.|......|........|
|00002130| 09 09 09 09 09 09 09 7c | 0d 09 7c 20 52 65 73 75 |.......||..| Resu|
|00002140| 6c 74 3a 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |lt:.....|........|
|00002150| 09 09 09 09 09 09 7c 0d | 09 7c 09 54 68 65 20 6f |......|.|.|.The o|
|00002160| 66 66 73 65 74 20 6f 66 | 20 74 68 65 20 61 72 65 |ffset of| the are|
|00002170| 61 20 77 69 74 68 69 6e | 20 74 68 65 20 70 68 79 |a within| the phy|
|00002180| 73 69 63 61 6c 20 70 61 | 67 65 2e 09 09 09 09 09 |sical pa|ge......|
|00002190| 09 09 09 7c 0d 09 2e 5f | 5f 5f 5f 5f 5f 5f 5f 5f |...|..._|________|
|000021a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000021b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000021c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000021d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000021e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 2e 0d 20 2a 2f 0d |________|__.. */.|
|000021f0| 23 64 65 66 69 6e 65 20 | 50 61 67 65 4f 66 66 73 |#define |PageOffs|
|00002200| 65 74 28 74 68 65 41 64 | 64 72 65 73 73 29 20 28 |et(theAd|dress) (|
|00002210| 28 74 68 65 41 64 64 72 | 65 73 73 29 20 26 20 67 |(theAddr|ess) & g|
|00002220| 50 61 67 65 4d 61 73 6b | 29 0d 0d 23 65 6e 64 69 |PageMask|)..#endi|
|00002230| 66 20 2f 2a 20 5f 5f 44 | 4d 41 54 72 61 6e 73 66 |f /* __D|MATransf|
|00002240| 65 72 5f 5f 20 2a 2f 0d | 0d 00 00 00 00 00 00 00 |er__ */.|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002280| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00002290| ab f8 a8 21 0f 42 42 45 | 64 69 74 20 4c 69 74 65 |...!.BBE|dit Lite|
|000022a0| 20 33 2e 30 00 00 00 00 | 00 00 00 00 00 00 00 00 | 3.0....|........|
|000022b0| 0d 44 4d 41 54 72 61 6e | 73 66 65 72 2e 68 02 00 |.DMATran|sfer.h..|
|000022c0| 00 00 54 45 58 54 4d 50 | 43 43 01 00 ff ff ff ff |..TEXTMP|CC......|
|000022d0| 00 00 54 45 58 54 4d 50 | 43 43 01 00 ff ff ff ff |..TEXTMP|CC......|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 ac 03 29 dd 00 00 | 21 c9 00 00 01 9a 31 00 |....)...|!.....1.|
|00002300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 01 |........|........|
|00002310| 00 00 41 be ab eb 77 70 | 1a 50 6f 77 65 72 20 4d |..A...wp|.Power M|
|00002320| 61 63 20 44 65 62 75 67 | 67 65 72 20 32 2e 30 62 |ac Debug|ger 2.0b|
|00002330| 32 65 31 00 00 00 00 00 | 00 00 00 01 00 00 01 bc |2e1.....|........|
|00002340| ab 9e be 46 10 4c 6f 61 | 64 20 44 72 69 76 65 72 |...F.Loa|d Driver|
|00002350| 20 54 65 73 74 00 00 00 | 00 00 00 00 00 00 00 00 | Test...|........|
|00002360| 00 00 00 00 00 00 00 01 | 00 00 27 98 ab 9c 6c 0a |........|..'...l.|
|00002370| 0a 4a 4d 50 20 33 2e 30 | 2e 32 a4 00 00 00 00 00 |.JMP 3.0|.2......|
|00002380| 00 00 00 48 00 0a 43 6f | 75 72 69 65 72 00 00 00 |...H..Co|urier...|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 03 | 00 04 00 95 01 34 02 07 |........|.....4..|
|000023b0| 03 2e 00 95 01 34 02 07 | 03 2e ac 18 91 dd 00 00 |.....4..|........|
|000023c0| 16 a1 00 00 16 b3 00 00 | 14 40 00 00 00 00 00 04 |........|.@......|
|000023d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000023e0| 00 00 00 46 01 b9 15 38 | 12 bc 00 00 00 1c 00 46 |...F...8|.......F|
|000023f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00002400| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00002410| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00002420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+